<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
    <title>DefaultDecoration</title>
<link href="../../../../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script><script type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async="async"></script><link href="../../../styles/style.css" rel="Stylesheet"><link href="../../../styles/logo-styles.css" rel="Stylesheet"><link href="../../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../../styles/main.css" rel="Stylesheet"><script type="text/javascript" src="../../../scripts/clipboard.js" async="async"></script><script type="text/javascript" src="../../../scripts/navigation-loader.js" async="async"></script><script type="text/javascript" src="../../../scripts/platform-content-handler.js" async="async"></script><script type="text/javascript" src="../../../scripts/main.js" async="async"></script>  </head>
  <body>
    <div id="container">
      <div id="leftColumn"><a href="../../../index.html">
          <div id="logo"></div>
        </a>
        <div id="paneSearch"></div>
        <div id="sideMenu"></div>
      </div>
      <div id="main">
        <div id="leftToggler"><span class="icon-toggler"></span></div>
<script type="text/javascript" src="../../../scripts/main.js"></script>        <div class="main-content" id="content" pageIds="BRV::com.drake.brv/DefaultDecoration///PointingToDeclaration//-900954490">
          <div class="navigation-wrapper" id="navigation-wrapper">
            <div class="breadcrumbs"><a href="../../../index.html">BRV</a>/<a href="../index.html">com.drake.brv</a>/<a href="index.html">DefaultDecoration</a></div>
            <div class="pull-right d-flex">
              <div id="searchBar"></div>
            </div>
          </div>
          <div class="cover ">
            <h1 class="cover"><span>Default</span><wbr></wbr><span>Decoration</span></h1>
            <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><div class="symbol monospace">class <a href="index.html">DefaultDecoration</a>(context: <a href="https://developer.android.com/reference/kotlin/android/content/Context.html">Context</a>) : <a href="https://developer.android.com/reference/kotlin/androidx/recyclerview/widget/RecyclerView.ItemDecoration.html">RecyclerView.ItemDecoration</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><p class="paragraph">最强大的分割线工具</p><ol><li><p class="paragraph">分隔图片</p></li><li><p class="paragraph">分隔颜色</p></li><li><p class="paragraph">分隔间距</p></li><li><p class="paragraph">回调函数判断间隔</p></li><li><p class="paragraph">首尾是否显示分隔线, 可以展 示表格效果</p></li><li><p class="paragraph">类型池来指定是否显示分割线</p></li><li><p class="paragraph">支持全部的LayoutManager, 竖向/横向/网格分割线</p></li><li><p class="paragraph">优于其他框架, 完美支持均布网格分隔物</p></li><li><p class="paragraph">支持分组条目的分割线</p></li></ol></div></div>
          </div>
          <div class="tabbedcontent">
            <div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="Types">Types</button><button class="section-tab" data-togglable="Constructors">Constructors</button><button class="section-tab" data-togglable="Functions">Functions</button><button class="section-tab" data-togglable="Properties">Properties</button></div>
            <div class="tabs-section-body">
              <h2 class="tabbedcontent">Constructors</h2>
              <div class="table" data-togglable="Constructors"><a data-name="-1236909594%2FConstructors%2F-900954490" anchor-label="DefaultDecoration" id="-1236909594%2FConstructors%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue TabbedContent">
                    <div class=""><span class="inline-flex"><a href="-default-decoration.html">DefaultDecoration</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1236909594%2FConstructors%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title">
                        <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><div class="symbol monospace">fun <a href="-default-decoration.html">DefaultDecoration</a>(context: <a href="https://developer.android.com/reference/kotlin/android/content/Context.html">Context</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <h2 class="">Types</h2>
              <div class="table" data-togglable="Types"><a data-name="975995424%2FClasslikes%2F-900954490" anchor-label="Edge" id="975995424%2FClasslikes%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="-edge/index.html">Edge</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="975995424%2FClasslikes%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><div class="symbol monospace">data class <a href="-edge/index.html">Edge</a>(left: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>, top: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>, right: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>, bottom: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="975995424%2FClasslikes%2F-900954490" anchor-label="Edge" id="975995424%2FClasslikes%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="brief "><a data-name="975995424%2FClasslikes%2F-900954490" anchor-label="Edge" id="975995424%2FClasslikes%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>列表条目是否靠近边缘的结算结果</div></div>
</div>
                    </div>
                  </div>
                </div>
              </div>
              <h2 class="">Functions</h2>
              <div class="table" data-togglable="Functions"><a data-name="-299530892%2FFunctions%2F-900954490" anchor-label="addType" id="-299530892%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="add-type.html">addType</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-299530892%2FFunctions%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><div class="symbol monospace">fun <a href="add-type.html">addType</a>(<span>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/LayoutRes.html">LayoutRes</a>() </span>vararg typeArray: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-299530892%2FFunctions%2F-900954490" anchor-label="addType" id="-299530892%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="brief "><a data-name="-299530892%2FFunctions%2F-900954490" anchor-label="addType" id="-299530892%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>添加类型后只允许该类型的条目显示分割线 从未添加类型则默认为允许全部条目显示分割线</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="335298702%2FFunctions%2F-900954490" anchor-label="getItemOffsets" id="335298702%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="get-item-offsets.html">getItemOffsets</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="335298702%2FFunctions%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><div class="symbol monospace">open override fun <a href="get-item-offsets.html">getItemOffsets</a>(outRect: <a href="https://developer.android.com/reference/kotlin/android/graphics/Rect.html">Rect</a>, view: <a href="https://developer.android.com/reference/kotlin/android/view/View.html">View</a>, parent: <a href="https://developer.android.com/reference/kotlin/androidx/recyclerview/widget/RecyclerView.html">RecyclerView</a>, state: <a href="https://developer.android.com/reference/kotlin/androidx/recyclerview/widget/RecyclerView.State.html">RecyclerView.State</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
</div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="313951826%2FFunctions%2F-900954490" anchor-label="onDraw" id="313951826%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="on-draw.html">onDraw</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="313951826%2FFunctions%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><div class="symbol monospace">open override fun <a href="on-draw.html">onDraw</a>(canvas: <a href="https://developer.android.com/reference/kotlin/android/graphics/Canvas.html">Canvas</a>, parent: <a href="https://developer.android.com/reference/kotlin/androidx/recyclerview/widget/RecyclerView.html">RecyclerView</a>, state: <a href="https://developer.android.com/reference/kotlin/androidx/recyclerview/widget/RecyclerView.State.html">RecyclerView.State</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
</div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-109199547%2FFunctions%2F-900954490" anchor-label="onEnabled" id="-109199547%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="on-enabled.html">onEnabled</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-109199547%2FFunctions%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><div class="symbol monospace">fun <a href="on-enabled.html">onEnabled</a>(block: <a href="../-binding-adapter/-binding-view-holder/index.html">BindingAdapter.BindingViewHolder</a>.() -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-109199547%2FFunctions%2F-900954490" anchor-label="onEnabled" id="-109199547%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="brief "><a data-name="-109199547%2FFunctions%2F-900954490" anchor-label="onEnabled" id="-109199547%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>根据回调函数来决定是否启用分割线</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-1206579474%2FFunctions%2F-900954490" anchor-label="setBackground" id="-1206579474%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="set-background.html">setBackground</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1206579474%2FFunctions%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><div class="symbol monospace">fun <a href="set-background.html">setBackground</a>(<span>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt.html">ColorInt</a>() </span>color: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-856517824%2FFunctions%2F-900954490" anchor-label="setBackground" id="-856517824%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="brief "><a data-name="-856517824%2FFunctions%2F-900954490" anchor-label="setBackground" id="-856517824%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>分割线背景色 分割线有时候会存在间距(例如配置<a href="set-margin.html">setMargin</a>)或属于虚线, 这个时候暴露出来的是RecyclerView的背景色, 所以我们可以设置一个背景色来调整 可以设置背景色解决不统一的问题, 默认为透明<a href="https://developer.android.com/reference/kotlin/android/graphics/Color.html#transparent">Color.TRANSPARENT</a></div></div>
<div class="divergent-group" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><div class="symbol monospace">fun <a href="set-background.html">setBackground</a>(colorString: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="1806072866%2FFunctions%2F-900954490" anchor-label="setBackground" id="1806072866%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="brief "><a data-name="1806072866%2FFunctions%2F-900954490" anchor-label="setBackground" id="1806072866%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>分割线背景色 分割线有时候会存在间距(例如配置<a href="set-margin.html">setMargin</a>)或属于虚线, 这个时候暴露出来的是RecyclerView的背景色, 所以我们可以设置一个背景色来调整 可以设置背景色解决不统一的问题, 默认为透明<a href="https://developer.android.com/reference/kotlin/android/graphics/Color.html#transparent">Color.TRANSPARENT</a></div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-103016362%2FFunctions%2F-900954490" anchor-label="setBackgroundRes" id="-103016362%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="set-background-res.html">setBackgroundRes</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-103016362%2FFunctions%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><div class="symbol monospace">fun <a href="set-background-res.html">setBackgroundRes</a>(<span>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/ColorRes.html">ColorRes</a>() </span>color: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-103016362%2FFunctions%2F-900954490" anchor-label="setBackgroundRes" id="-103016362%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="brief "><a data-name="-103016362%2FFunctions%2F-900954490" anchor-label="setBackgroundRes" id="-103016362%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>分割线背景色 分割线有时候会存在间距(例如配置<a href="set-margin.html">setMargin</a>)或属于虚线, 这个时候暴露出来的是RecyclerView的背景色, 所以我们可以设置一个背景色来调整 可以设置背景色解决不统一的问题, 默认为透明<a href="https://developer.android.com/reference/kotlin/android/graphics/Color.html#transparent">Color.TRANSPARENT</a></div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-562779722%2FFunctions%2F-900954490" anchor-label="setColor" id="-562779722%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="set-color.html">setColor</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-562779722%2FFunctions%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><div class="symbol monospace">fun <a href="set-color.html">setColor</a>(<span>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt.html">ColorInt</a>() </span>color: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-993672987%2FFunctions%2F-900954490" anchor-label="setColor" id="-993672987%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="brief "><a data-name="-993672987%2FFunctions%2F-900954490" anchor-label="setColor" id="-993672987%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>设置分割线颜色, 如果不设置分割线宽度<a href="set-divider.html">setDivider</a>则分割线宽度默认为1px 所谓分割线宽度指的是分割线的粗细, 而非水平宽度</div></div>
<div class="divergent-group" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><div class="symbol monospace">fun <a href="set-color.html">setColor</a>(color: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="330510429%2FFunctions%2F-900954490" anchor-label="setColor" id="330510429%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="brief "><a data-name="330510429%2FFunctions%2F-900954490" anchor-label="setColor" id="330510429%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>设置分割线颜色, 如果不设置分割线宽度<a href="set-divider.html">setDivider</a>则分割线宽度默认为1px 所谓分割线宽度指的是分割线的粗细, 而非水平宽度</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-1578578799%2FFunctions%2F-900954490" anchor-label="setColorRes" id="-1578578799%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="set-color-res.html">setColorRes</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1578578799%2FFunctions%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><div class="symbol monospace">fun <a href="set-color-res.html">setColorRes</a>(<span>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/ColorRes.html">ColorRes</a>() </span>color: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-1578578799%2FFunctions%2F-900954490" anchor-label="setColorRes" id="-1578578799%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="brief "><a data-name="-1578578799%2FFunctions%2F-900954490" anchor-label="setColorRes" id="-1578578799%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>设置分割线颜色, 如果不设置分割线宽度<a href="set-divider.html">setDivider</a>则分割线宽度默认为1px 所谓分割线宽度指的是分割线的粗细, 而非水平宽度</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="766201205%2FFunctions%2F-900954490" anchor-label="setDivider" id="766201205%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="set-divider.html">setDivider</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="766201205%2FFunctions%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><div class="symbol monospace">fun <a href="set-divider.html">setDivider</a>(width: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a> = 1, dp: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="766201205%2FFunctions%2F-900954490" anchor-label="setDivider" id="766201205%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="brief "><a data-name="766201205%2FFunctions%2F-900954490" anchor-label="setDivider" id="766201205%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>设置分割线宽度 如果使用<a href="set-drawable.html">setDrawable</a>则无效</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="1451149996%2FFunctions%2F-900954490" anchor-label="setDrawable" id="1451149996%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="set-drawable.html">setDrawable</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1451149996%2FFunctions%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><div class="symbol monospace">fun <a href="set-drawable.html">setDrawable</a>(drawable: <a href="https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable.html">Drawable</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="1425798568%2FFunctions%2F-900954490" anchor-label="setDrawable" id="1425798568%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="brief "><a data-name="1425798568%2FFunctions%2F-900954490" anchor-label="setDrawable" id="1425798568%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>将图片作为分割线, 图片宽高即分割线宽高</div></div>
<div class="divergent-group" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><div class="symbol monospace">fun <a href="set-drawable.html">setDrawable</a>(<span>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/DrawableRes.html">DrawableRes</a>() </span>drawableRes: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="899848848%2FFunctions%2F-900954490" anchor-label="setDrawable" id="899848848%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="brief "><a data-name="899848848%2FFunctions%2F-900954490" anchor-label="setDrawable" id="899848848%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>将图片作为分割线, 图片宽高即分割线宽高</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="1889121479%2FFunctions%2F-900954490" anchor-label="setMargin" id="1889121479%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="set-margin.html">setMargin</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1889121479%2FFunctions%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><div class="symbol monospace">fun <a href="set-margin.html">setMargin</a>(start: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a> = 0, end: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a> = 0, dp: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = true)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="1889121479%2FFunctions%2F-900954490" anchor-label="setMargin" id="1889121479%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="brief "><a data-name="1889121479%2FFunctions%2F-900954490" anchor-label="setMargin" id="1889121479%2FFunctions%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>设置分隔左右或上下间距, 依据分割线为垂直或者水平决定具体方向间距</div></div>
</div>
                    </div>
                  </div>
                </div>
              </div>
              <h2 class="">Properties</h2>
              <div class="table" data-togglable="Properties"><a data-name="-377591023%2FProperties%2F-900954490" anchor-label="endVisible" id="-377591023%2FProperties%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="end-visible.html">endVisible</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-377591023%2FProperties%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title">
                        <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><a data-name="-377591023%2FProperties%2F-900954490" anchor-label="endVisible" id="-377591023%2FProperties%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="symbol monospace">var <a href="end-visible.html">endVisible</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><a data-name="-377591023%2FProperties%2F-900954490" anchor-label="endVisible" id="-377591023%2FProperties%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>最后一个条目是否显示分割线, 当处于<a href="../../com.drake.brv.annotaion/-divider-orientation/-g-r-i-d/index.html">DividerOrientation.GRID</a> 时垂直方向顶端和末端是否显示分割线</div></div></div>
                      </div>
                    </div>
                  </div>
                </div>
<a data-name="-107720742%2FProperties%2F-900954490" anchor-label="expandVisible" id="-107720742%2FProperties%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="expand-visible.html">expandVisible</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-107720742%2FProperties%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title">
                        <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><a data-name="-107720742%2FProperties%2F-900954490" anchor-label="expandVisible" id="-107720742%2FProperties%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="symbol monospace">var <a href="expand-visible.html">expandVisible</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><a data-name="-107720742%2FProperties%2F-900954490" anchor-label="expandVisible" id="-107720742%2FProperties%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>展开分组条目后该条目是否显示分割线</div></div></div>
                      </div>
                    </div>
                  </div>
                </div>
<a data-name="1716094302%2FProperties%2F-900954490" anchor-label="includeVisible" id="1716094302%2FProperties%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="include-visible.html">includeVisible</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1716094302%2FProperties%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title">
                        <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><a data-name="1716094302%2FProperties%2F-900954490" anchor-label="includeVisible" id="1716094302%2FProperties%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="symbol monospace">var <a href="include-visible.html">includeVisible</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
                      </div>
                    </div>
                  </div>
                </div>
<a data-name="1548998338%2FProperties%2F-900954490" anchor-label="orientation" id="1548998338%2FProperties%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="orientation.html">orientation</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1548998338%2FProperties%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title">
                        <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><a data-name="1548998338%2FProperties%2F-900954490" anchor-label="orientation" id="1548998338%2FProperties%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="symbol monospace">var <a href="orientation.html">orientation</a>: <a href="../../com.drake.brv.annotaion/-divider-orientation/index.html">DividerOrientation</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><a data-name="1548998338%2FProperties%2F-900954490" anchor-label="orientation" id="1548998338%2FProperties%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>分割线的方向, 仅支持<a href="https://developer.android.com/reference/kotlin/androidx/recyclerview/widget/GridLayoutManager.html">GridLayoutManager</a>, 其他LayoutManager都是根据其方向自动适应</div></div></div>
                      </div>
                    </div>
                  </div>
                </div>
<a data-name="-2091559976%2FProperties%2F-900954490" anchor-label="startVisible" id="-2091559976%2FProperties%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="start-visible.html">startVisible</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-2091559976%2FProperties%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title">
                        <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><a data-name="-2091559976%2FProperties%2F-900954490" anchor-label="startVisible" id="-2091559976%2FProperties%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="symbol monospace">var <a href="start-visible.html">startVisible</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><a data-name="-2091559976%2FProperties%2F-900954490" anchor-label="startVisible" id="-2091559976%2FProperties%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>第一个条目之前是否显示分割线, 当处于<a href="../../com.drake.brv.annotaion/-divider-orientation/-g-r-i-d/index.html">DividerOrientation.GRID</a> 时水平方向顶端和末端是否显示分割线</div></div></div>
                      </div>
                    </div>
                  </div>
                </div>
<a data-name="427999058%2FProperties%2F-900954490" anchor-label="typePool" id="427999058%2FProperties%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":brv:dokkaHtml/release" data-filterable-set=":brv:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="type-pool.html">typePool</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="427999058%2FProperties%2F-900954490"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title">
                        <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":brv:dokkaHtml/release"><a data-name="427999058%2FProperties%2F-900954490" anchor-label="typePool" id="427999058%2FProperties%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a><div class="symbol monospace">var <a href="type-pool.html">typePool</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>&gt;? = null<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><a data-name="427999058%2FProperties%2F-900954490" anchor-label="typePool" id="427999058%2FProperties%2F-900954490" data-filterable-set=":brv:dokkaHtml/release"></a>集合内包含的类型才显示分割线</div></div></div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="footer"><span class="go-to-top-icon"><a href="#content"></a></span><span>© 2021 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span></div>
      </div>
    </div>
  </body>
</html>

